<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:s="http://br.gov.ce.semace.erp.tag/seguranca"
      >

		 <p:tieredMenu rendered="#{segurancaManager.showVisualizacaoMedico}">
			<p:submenu label="Cadastro" icon="ui-icon-document"> 
		       	<p:menuitem value="Clientes" action="#{clienteManager.list}" ajax="false"/>
			</p:submenu>
			<p:submenu label="Agenda" icon="ui-icon-calendar">  
				<p:menuitem action="#{agendaManager.exibirAgendaMedico}" value="Minha Agenda" ajax="false">
					<f:setPropertyActionListener target="#{agendaManager.medico}" value="#{segurancaManager.funcionarioLogado}"></f:setPropertyActionListener>
				</p:menuitem>
			</p:submenu>
			<p:menuitem action="#{segurancaManager.logout}" value="Sair" ajax="false" icon="ui-icon-close"/>
		</p:tieredMenu>
		<p:dataTable value="#{utilManager.listStatusAgendamento}" var="status" rendered="#{segurancaManager.showVisualizacaoMedico}">
			<f:facet name="header">
				<h:outputText value="Legenda" />
			</f:facet>
			
			<p:column style="background: #{status.color}; color: #{status.color}; width:17px;">
				<h:outputText value="||||"/>
			</p:column>
			<p:column  style="background-color: #C4C4C4">
				<h:outputText value="#{status.descricao}" style="font-weight: bold; color: #000000;" />
			</p:column>
		</p:dataTable>
					
</html>